package com.controller;

import com.entity.UserInfo;
import com.entity.vo.SubjectVo;
import com.service.ItemService;
import com.service.OptionService;
import com.service.SubjectService;
import com.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
@Controller
public class ItemController {
    @Resource
    private ItemService itemService;
    @RequestMapping("/itemvote")
    public String vote(Integer[] vopid, Integer vsid ,Integer userid,Model model) {
    	itemService.vote(vopid, vsid, userid);
    	model.addAttribute("vsid", vsid);
    	return "votesucess";
    }
}
